package moe.oil.exception;

import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.http.HttpStatus;


@NoArgsConstructor
@Getter
public class ServiceException extends RuntimeException {

    private HttpStatus status;
    private Object rejectedValue;
    private ErrorType type;

    public ServiceException(String message, HttpStatus status, ErrorType type, Object rejectedValue) {
        super(message);
        this.status = status;
        this.type = type;
        this.rejectedValue = rejectedValue;
    }



}
